﻿using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.Driver
{
    public class ChangeCityRequestDto
    {
        /// <summary>
        /// 选择省份编码
        /// </summary>
        [Display(Name = "选择省份")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [StringLength(6, ErrorMessage = "{0} 长度为 {1} 个数字", MinimumLength = 6)]
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 选择城市编码
        /// </summary>
        [Display(Name = "选择城市")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [StringLength(6, ErrorMessage = "{0} 长度为 {1} 个数字", MinimumLength = 6)]
        public string CityCode { get; set; }
        /// <summary>
        /// 选择区/县编码
        /// </summary>
        [Display(Name = "选择区/县")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [StringLength(6, ErrorMessage = "{0} 长度为 {1} 个数字", MinimumLength = 6)]
        public string CountyCode { get; set; }


    }
}
